package book;
public class BookList  {
private Book[]book = new Book[10];
private int usedSized;
public BookList(){
 this.book[0] = new Book("红楼梦","曹雪芹",456,"小说");
 this.book[1] = new Book("三国演义","罗贯中",234,"小说");
 this.book[2] = new Book("西游记","吴承恩",122,"小说");
 this.usedSized = 3;
}

 public Book getBook(int pos) {
  return book[pos];
 }

 public void setBook(int pos,Book book) {
  this.book[pos] = book;
 }

 public int getUsedSized() {
  return usedSized;
 }

 public void setUsedSized(int usedSized) {
  this.usedSized = usedSized;
 }
 public Book[] getBook(){
 return book;
 }
}
